package OOPS;

class Test28 {
	public static void main(String str[]) {
		char ch = 'A';
		byte b1 = 25;
		int arr[] = null;
		arr = new int[] { ch, b1, 42, 32 };
		for (int i = 0; i < arr.length; i++) {
			System.out.println(arr[i]);
		}
		System.out.println("length\t:" + arr.length);
		// arr.length=12;
		arr = new int[10];
		System.out.println("length\t:" + arr.length);
		for (int i = 0; i < arr.length; i++) {
			System.out.println(arr[i]);
		}
		Object obj = new int[3]; // super class
		// System.out.println(obj[0]);
		int ref[] = (int[]) obj;
		System.out.println("Last Value\t:" + ref[0]);
		// int arr4[]=new byte[12];
	}
}